package com.example.demo.Dao;

import com.example.demo.Model.UserEntity;
import org.apache.ibatis.annotations.*;

@Mapper
public interface UserMaper {

//    @Results({
//            @Result(property = "accont",column = "accont"),
//            @Result(property = "password",column = "password")
//    })
    @Select("select * from user where accont = #{accont}")
    UserEntity findbyAccount(@Param("accont") String accont);


    @Insert("insert into user (accont,password,nickname) values(#{accont},#{password},#{nickname})")
    void insertUser(UserEntity userEntity);
}
